<?php

require_once __DIR__ . '/includes/BasketbalFunctions.php';

$basketbalfunctions = new BasketbalFunctions();

if (isset($_POST['stattype']) && isset($_POST['amounttoshow'])) {

	$stattype = $_POST['stattype'];
	$amounttoshow = $_POST['amounttoshow'];
	$season = $season = $_POST['season'];

	include_once __DIR__ . '/db_bb_connect.php';

	?>
	<div class="col-md-4">
	<h4>Top <?=$amounttoshow ?> Average per Game </h4>
	<?php $basketbalfunctions->GetTopStatsPlayersAvg($stattype, $season, $amounttoshow); ?>
</div>
<div class="col-md-4">

	<h4>Top <?=$amounttoshow ?> Average per Minute</h4>
	<?php $basketbalfunctions->GetTopStatsPlayersAvgMinute($stattype, $season, $amounttoshow); ?>
</div>
<div class="col-md-4">
	<h4>Top <?=$amounttoshow ?> Season Sum </h4>
	

	<?php $basketbalfunctions->GetTopStatsPlayersSum($stattype, $season, $amounttoshow); ?>
	</div>

	<?php

} else {
	echo "nothing here";
}

?>